package grape.house.rest.propertytype.mapper;

import grape.house.rest.propertytype.form.PropertyTypeListForm;
import grape.house.service.propertytype.po.PropertyType;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.house.rest.propertytype.form.PropertyTypeCreateForm;
import grape.house.rest.propertytype.form.PropertyTypeUpdateForm;
import grape.house.rest.propertytype.form.PropertyTypeListPageForm;
import grape.house.rest.propertytype.vo.PropertyTypeVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 物业类型表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-17
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface PropertyTypeWebMapper extends WebMapper<PropertyTypeVo, PropertyType> {

    PropertyType formToPo(PropertyTypeCreateForm f);
    PropertyType formToPo(PropertyTypeUpdateForm f);
    PropertyType formToPo(PropertyTypeListPageForm f);
    PropertyType formToPo(PropertyTypeListForm f);
}
